<?php if (!defined('THINK_PATH')) exit();?><!doctype html>
<html>
<head><?php $tag_articleview_class = new \Common\Taglib\articleview();$show = $tag_articleview_class->run(array('listname'=>'show','id'=>$_GET['id'],'cache'=>'0',)); ?> 
<meta charset="utf-8">
<title><?php echo SEO('article-view','title',array('ARTICLE_TITLE'=>$show['title']));?></title>
<meta name="keywords" content="<?php echo SEO('article-view','keywords',array('ARTICLE_TITLE'=>$show['title']));?>">
<meta name="description" content="<?php echo SEO('article-view','description',array('ARTICLE_CONTEND'=>$show['content']));?>">
<link href="/<?php echo C('UU_TPL_DIR');?>/public/css/article.css" rel="stylesheet" type="text/css">
<link rel="shortcut icon" href="/favicon.ico" />
<link href="/<?php echo C('UU_TPL_DIR');?>/public/css/common.css" rel="stylesheet" type="text/css">
<script src="/<?php echo C('UU_TPL_DIR');?>/public/js/jquery.min.js"></script>
<script src="/<?php echo C('UU_TPL_DIR');?>/public/js/jquery.dialog.js"></script>
<script src="/<?php echo C('UU_TPL_DIR');?>/public/js/common.js"></script>
<script src="/<?php echo C('UU_TPL_DIR');?>/public/js/jquery.disappear.tooltip.js"></script>
<!--[if lt IE 9]>
  <script type="text/javascript" src="/<?php echo C('UU_TPL_DIR');?>/public/js/PIE.js"></script>
  <script type="text/javascript">
    (function($){
        $.pie = function(name, v){
            // 如果没有加载 PIE 则直接终止
            if (! PIE) return false;
            // 是否 jQuery 对象或者选择器名称
            var obj = typeof name == 'object' ? name : $(name);
            // 指定运行插件的 IE 浏览器版本
            var version = 9;
            // 未指定则默认使用 ie10 以下全兼容模式
            if (typeof v != 'number' && v < 9) {
                version = v;
            }
            // 可对指定的多个 jQuery 对象进行样式兼容
            if ($.browser.msie && obj.size() > 0) {
                if ($.browser.version*1 <= version*1) {
                    obj.each(function(){
                        PIE.attach(this);
                    });
                }
            }
        }
    })(jQuery);
    if ($.browser.msie) {
      $.pie('.pie_about');
    };
  </script>
<![endif]-->
<script type="text/javascript">
var ajaxURL="<?php echo RU('ajax/view');?>";
</script>
</head>
<style>
    .sotit {
        width: 120px;
        float: left;
        font-size: 20px;
        padding-top: 35px;
        text-align: right;
        padding-right: 25px;
    }
    .search form{
        width: 430px;
        float: left;
        height: 42px;
        border: 3px #6DBD60 solid;
        background-color: #FFF;
        margin-top: 25px;
        position: relative;
    }
    .so-input{
        border: 0px;
        background-color: #FFFFFF;
        height: 40px;
        width: 380px;
        padding-left: 15px;
    }


    .search .sobtn {
        position: absolute;
        right: -3px;
        top: -3px;
        width: 80px;
        background-color: #6DBD60;
        border: 0px;
        color: #FFFFFF;
        height: 48px;
        font-size: 16px;
        cursor: pointer;
    }
    </style>
<body>

<div class="pagetop">
		<div class="main">
          <div class="welcome link_orange" id="J_welcome">欢迎登录 <?php echo C('UU_SITE_NAME');?>！请 <span><a href="Javascript: void(0)" class="J_user_login">登录</a></span>或<span><a href="Javascript: void(0)" class="J_user_reg">注册</a></span></div>
          <div class="menu link_gray6"><a href="<?php echo C('UU_SITE_DOMAIN');?>/" class="home">网站首页</a>
		  
		  <!-- <a href="#" class="ranking">排行榜</a> <a href="#" class="category">问题分类</a> <a href="#" class="mall">积分商城</a> -->
		   
		   </div>
        	<div class="clear"></div>
        </div>
</div>

<div class="header">
  <div class="logo" style="width: 220px"><a href="/"><img src="http://www.zgxmall.com/data/upload/mall/common/05999185122820637.png"  alt="<?php echo C('UU_SITE_NAME');?>" border="0"/></a></div>
    <!--<div class="sotit">商品</div>-->
    <!--<div class="search" >-->
        <!--<form action="<?php echo RU('article/lists');?>" method="get" id="J_so_from">-->
            <!--<div class="sobox">-->
                <!--<div class="inputbox">-->
                    <!--<input type="text" class="so-input"  name="key"  value="<?php echo ($_REQUEST['key']); ?>" placeholder="请输入关键词">-->
                    <!--<input name="" type="submit" value="搜索" class="sobtn">-->
                <!--</div>-->
            <!--</div>-->
        <!--</form>-->
    <!--</div>-->
    <div class="so"></div>
  <div class="clear"></div>

</div>

<div class="pagenav">
  <div class="navmain link_white">
  <?php $tag_nav_class = new \Common\Taglib\nav();$nav = $tag_nav_class->run(array('listname'=>'nav','cache'=>'0',)); ?>
			<?php if(is_array($nav)): $i = 0; $__LIST__ = $nav;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$nav): $mod = ($i % 2 );++$i;?><div class="li  <?php if($page_as == $nav['pagealias']): ?>select<?php endif; ?>"><a href="<?php echo ($nav["url"]); ?>" target="<?php echo ($nav["target"]); ?>"><?php echo ($nav["title"]); ?></a></div><?php endforeach; endif; else: echo "" ;endif; ?>
    <div class="clear"></div>
  </div>
</div>


<div class="articleshow">

  <div class="arl">
   
	<div class="tit">
	<h1> <?php echo ($show["title"]); ?></h1>
	</div>	
 
	
    <div class="tag">
	<?php if(is_array($show["tags"])): $i = 0; $__LIST__ = $show["tags"];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><a href="<?php echo ($vo["tagurl"]); ?>" class="tagli"><?php echo ($vo["tag"]); ?></a><?php endforeach; endif; else: echo "" ;endif; ?>
 	<div class="clear"></div>
	</div>
	
	
    <div class="time">
	<?php echo ($show["user"]["username"]); ?>&nbsp;/&nbsp;<?php echo ($show["addtime_str"]); ?>&nbsp;/&nbsp;人气：<?php echo ($show["click"]); ?>&nbsp;/&nbsp;推荐：<?php echo ($show["praise"]); ?>
	</div>
	
 
    <div class="txt">
	<?php echo ($show["content"]); ?>
	</div>
	
 
    <div class="recommend">
      		<div class="ctxt J_praise" aid="<?php echo ($show["id"]); ?>" answeruid="<?php echo ($show["uid"]); ?>"><?php echo ($show["praise"]); ?></div>
    </div>
	
	
  </div>		
 
  <div class="arr">
	 
		<div class="yuser">
		  <div class="pic"><img src="<?php echo ($show["user"]["avatar"]); ?>" border="0"></div>
		  
		  <div class="yur">
		    <div class="usertxt substring link_orange"><span class="userLV">LV<?php echo ($show["user"]["exp_lv"]); ?></span><a href="<?php echo ($show["user"]["user_url"]); ?>"><?php echo ($show["user"]["username"]); ?></a></div>
			
			
		    <div class="counttxt substring"><?php echo ($show["user"]["count_article"]); ?> 篇文章，<?php echo ($show["user"]["count_praise"]); ?> 赞同</div>
		  </div>
		  <div class="clear"></div>
		</div>
	 
	 
	 <div class="rec">
          <div class="tit">精华文章</div>

                      <div class="clear"></div>
							<?php $tag_article_class = new \Common\Taglib\article();$new = $tag_article_class->run(array('listname'=>'new','page'=>'0','num'=>'5','sort'=>'exc','cache'=>'0',)); ?>
							<?php if(is_array($new["list"])): $i = 0; $__LIST__ = $new["list"];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$li): $mod = ($i % 2 );++$i;?><div class="reli link_gray6">
												 <a href="<?php echo ($li["url"]); ?>"><?php echo ($li["title"]); ?></a>
										<div class="pra"><?php echo ($li["praise"]); ?>赞</div>	
										</div><?php endforeach; endif; else: echo "" ;endif; ?>

		</div>
		
		<div class="tagbox">
          <div class="tit">热议话题</div>
          <div class="more link_gray6"><a href="<?php echo RU('tag/lists');?>">更多></a></div>
                      <div class="clear"></div>
          			  <?php $tag_tag_class = new \Common\Taglib\tag();$tags = $tag_tag_class->run(array('listname'=>'tags','page'=>'0','sort'=>'hot','num'=>'40','cache'=>'0',)); ?>
					 <?php if(is_array($tags["list"])): $i = 0; $__LIST__ = $tags["list"];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$tli): $mod = ($i % 2 );++$i;?><a class="tag" href="<?php echo ($tli["url"]); ?>"><?php echo ($tli["tag"]); ?><span>(<?php echo ($tli["count_question"]); ?>)</span></a><?php endforeach; endif; else: echo "" ;endif; ?>
                      <div class="clear"></div>
        </div>
	 
		
    	 
  </div>
  <div class="clear"></div>
  
</div>
 
<div class="footernav link_gray6">
<a href="<?php echo C('UU_SITE_DOMAIN');?>/">首页</a>
<?php $tag_intro_class = new \Common\Taglib\intro();$li = $tag_intro_class->run(array('listname'=>'li','cache'=>'0',)); ?>
<?php if(is_array($li["list"])): $i = 0; $__LIST__ = $li["list"];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$li): $mod = ($i % 2 );++$i;?><span>|</span><a href="<?php echo ($li["url"]); ?>" target="_blank"><?php echo ($li["title"]); ?></a><?php endforeach; endif; else: echo "" ;endif; ?>
</div>  
<div class="footertxt link_gray3">
<a href="http://www.miibeian.gov.cn/" target="_blank"><?php echo C('UU_ICP');?></a>
Powered By <a href="http://www.zgxmall.com" target="_blank"><span class="by">中港星企业服务论坛</span><span class="version"><?php echo C('UU_VERSION');?></span></a>
<?php echo C('UU_COPYRIGHT');?>
<br />
联系地址：深圳市罗湖区人民南路国贸大厦17、19楼&nbsp;&nbsp;&nbsp;&nbsp;联系电话：0755-82211688
 
<div class="statistics"><?php echo C('UU_STATISTICS');?></div>
</div>

<script type="text/javascript">
$(document).ready(function()
{


//点赞
$(".J_praise").click( function () {
	var praURL="<?php echo RU('article/ajax_inc_praise');?>";
	praise=$(this);
	aid=praise.attr('aid');
	answeruid=praise.attr('answeruid');
	$.getJSON(praURL, {aid:aid,answeruid:answeruid}, function(json){	
					if (json.status==0){
						disapperTooltip("remind", json.content);
					}else if (json.status==1){
						praise.html(json.content);
						disapperTooltip("success",'感谢你点赞！');
					}else{
						disapperTooltip("remind","未知错误");
					}
	});

});

});
</script>
</body>
</html>